<template>
    <div class="youxi">
        <div id="canvas">
        </div>
        <button id="btn" type="button" @click="onPaly">关闭游戏</button>
    </div>
</template>
<script>
export default {
    name: 'youxi',
    methods: {
        onPaly() {
            vm.$router.replace('/loading')
        }
    }, mounted() {
        console.log(youxi)
        youxi()
    }
}
</script>

<style lang="scss" rel="stylesheet/scss" scoped>
@import '../assets/css/common.css';
body {
    overflow: hidden;
    background-color: #000000;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
}

#btn {
    position: fixed;
    right: 50px;
    top: 50px;
    width: 50px;
    height: 50px;
    padding: 6px;
    box-sizing: border-box;
}
</style>

